﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models.Base
{
    [Table("MsgRegInfo")]
    public class MsgRegInfo
    {
        [Key]
        public int MsgRegId { get; set; }//Int AUTO_INCREMENT PRIMARY KEY Id（全局唯一）
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码

        public string? MsgChTypeNo { get; set; }//Varchar(50) 消息发送通道（微信、极光APP推送）
        public int? TargetType { get; set; }//int 接收人员类型1-责任人2-客户
        public string? TargetPlatform { get; set; }//Nvarchar(50)    目标设备平台        ANDROIDIOS……
        public int? DutyOfficerId { get; set; }//Int     FK:责任人Id
        public int? DeviceId { get; set; }//Int FK:设备Id
        public string? CustMobileNo { get; set; }//Varchar(50) Idx：客户手机号
        public string? JPushDevId { get; set; }//Varchar(50) 极光设备标识
        public string? WeiXinId { get; set; }//Varchar(50) 微信用户标识
        public string? ExtData { get; set; }//json 附加数据


        public DateTime? RegTime { get; set; }//datetime    订阅时间
        public int? IsEffect { get; set; }//Int 生效标志
    }
}
